package bean;
import java.sql.*;
import bean.dbbean.*;
public class deletebean {
	Connection conn=dbbean.getConn();
	PreparedStatement stmt;
	public boolean delete(String subject) throws SQLException{
		 String mysql="delete from note where subject=?";
	      PreparedStatement ps=conn.prepareStatement(mysql);
	      ps.setString(1,subject);
	      int result=ps.executeUpdate();
	      if(result>0)
	      {
	        return true;
	      }
	      else
	      return false;
	      }
	     
	}

